import 'package:json_annotation/json_annotation.dart';

part 'paymentInfo.g.dart';

@JsonSerializable()

class PaymentInfo {
  PaymentInfo(
    this.accountName,
    this.accountNumber,
    this.accountType,
    this.bankCode,
    this.bankName,
    this.validationInfo,
  );

  String accountName;
  String accountNumber;
  String accountType;
  String bankCode;
  String bankName;
  String validationInfo;

  factory PaymentInfo.fromJson(Map<String, dynamic> json) => _$PaymentInfoFromJson(json);
  Map<String, dynamic> toJson() => _$PaymentInfoToJson(this);
  // 命名构造函数
  PaymentInfo.empty();
}
